.class public Lcom/estrongs/android/widget/p;
.super Lcom/estrongs/android/ui/dialog/q;
.source "SimpleProgressDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/widget/p$b;,
        Lcom/estrongs/android/widget/p$e;,
        Lcom/estrongs/android/widget/p$d;,
        Lcom/estrongs/android/widget/p$c;
    }
.end annotation


# instance fields
.field a:Lcom/estrongs/android/widget/p$c;

.field protected b:Landroid/widget/ProgressBar;

.field protected c:Landroid/widget/TextView;

.field protected d:Landroid/widget/TextView;

.field protected e:Landroid/widget/TextView;

.field protected f:Ljava/text/NumberFormat;

.field protected g:Landroid/widget/TextView;

.field protected h:J

.field protected i:J

.field protected j:Ljava/lang/CharSequence;

.field private k:J

.field private l:Landroid/os/Handler;

.field private m:Lcom/estrongs/android/widget/p$d;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 5

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 2
    invoke-static {}, Ljava/text/NumberFormat;->getPercentInstance()Ljava/text/NumberFormat;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/p;->f:Ljava/text/NumberFormat;

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    .line 4
    new-instance v0, Lcom/estrongs/android/widget/p$e;

    invoke-direct {v0}, Lcom/estrongs/android/widget/p$e;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/widget/p;->m:Lcom/estrongs/android/widget/p$d;

    .line 5
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c030d

    const/4 v2, 0x0

    .line 6
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 7
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const v1, 0x7f09092b

    .line 8
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ProgressBar;

    iput-object v1, p0, Lcom/estrongs/android/widget/p;->b:Landroid/widget/ProgressBar;

    const v1, 0x7f0907bc

    .line 9
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/widget/p;->c:Landroid/widget/TextView;

    const v1, 0x7f090917

    .line 10
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/widget/p;->e:Landroid/widget/TextView;

    const v1, 0x7f090884

    .line 11
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/estrongs/android/widget/p;->d:Landroid/widget/TextView;

    const v1, 0x7f090beb

    .line 12
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/widget/p;->g:Landroid/widget/TextView;

    const-string v0, "window"

    .line 13
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 14
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    .line 15
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/widget/p;->c:Landroid/widget/TextView;

    iget v1, v1, Landroid/util/DisplayMetrics;->widthPixels:I

    int-to-double v1, v1

    const-wide v3, 0x3feccccccccccccdL    # 0.9

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    double-to-int v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setWidth(I)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/widget/p;->c:Landroid/widget/TextView;

    const v1, 0x7f11069b

    invoke-virtual {p1, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 18
    new-instance p1, Lcom/estrongs/android/widget/p$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/widget/p$a;-><init>(Lcom/estrongs/android/widget/p;)V

    iput-object p1, p0, Lcom/estrongs/android/widget/p;->l:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/widget/p;)J
    .locals 4

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    const-wide/16 v2, 0x1

    sub-long v2, v0, v2

    iput-wide v2, p0, Lcom/estrongs/android/widget/p;->k:J

    return-wide v0
.end method

.method static synthetic b(Lcom/estrongs/android/widget/p;)Lcom/estrongs/android/widget/p$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/widget/p;->m:Lcom/estrongs/android/widget/p$d;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 5

    const-string v0, ""

    .line 6
    iput-object v0, p0, Lcom/estrongs/android/widget/p;->j:Ljava/lang/CharSequence;

    const-wide/16 v1, 0x0

    .line 7
    iput-wide v1, p0, Lcom/estrongs/android/widget/p;->i:J

    .line 8
    iput-wide v1, p0, Lcom/estrongs/android/widget/p;->h:J

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/widget/p;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/widget/p;->m:Lcom/estrongs/android/widget/p$d;

    iget-object v1, p0, Lcom/estrongs/android/widget/p;->b:Landroid/widget/ProgressBar;

    iget-object v2, p0, Lcom/estrongs/android/widget/p;->g:Landroid/widget/TextView;

    iget-wide v3, p0, Lcom/estrongs/android/widget/p;->h:J

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/estrongs/android/widget/p$d;->b(Landroid/widget/ProgressBar;Landroid/widget/TextView;J)V

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/widget/p;->m:Lcom/estrongs/android/widget/p$d;

    iget-object v1, p0, Lcom/estrongs/android/widget/p;->b:Landroid/widget/ProgressBar;

    iget-object v2, p0, Lcom/estrongs/android/widget/p;->d:Landroid/widget/TextView;

    iget-wide v3, p0, Lcom/estrongs/android/widget/p;->i:J

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/estrongs/android/widget/p$d;->a(Landroid/widget/ProgressBar;Landroid/widget/TextView;J)V

    .line 12
    iget-wide v0, p0, Lcom/estrongs/android/widget/p;->i:J

    long-to-double v0, v0

    iget-wide v2, p0, Lcom/estrongs/android/widget/p;->h:J

    long-to-double v2, v2

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    .line 13
    iget-object v2, p0, Lcom/estrongs/android/widget/p;->e:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/estrongs/android/widget/p;->f:Ljava/text/NumberFormat;

    invoke-virtual {v3, v0, v1}, Ljava/text/NumberFormat;->format(D)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public a(I)V
    .locals 0

    return-void
.end method

.method public a(J)V
    .locals 2

    .line 3
    iput-wide p1, p0, Lcom/estrongs/android/widget/p;->h:J

    .line 4
    iget-wide p1, p0, Lcom/estrongs/android/widget/p;->k:J

    const-wide/16 v0, 0x1

    add-long/2addr p1, v0

    iput-wide p1, p0, Lcom/estrongs/android/widget/p;->k:J

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/widget/p;->l:Landroid/os/Handler;

    const/4 p2, 0x3

    invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method

.method public a(Lcom/estrongs/android/widget/p$c;)V
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/widget/p;->a:Lcom/estrongs/android/widget/p$c;

    return-void
.end method

.method public a(Lcom/estrongs/android/widget/p$d;)V
    .locals 0

    .line 14
    iput-object p1, p0, Lcom/estrongs/android/widget/p;->m:Lcom/estrongs/android/widget/p$d;

    return-void
.end method

.method public b(J)V
    .locals 5

    .line 2
    iget-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    const-wide/16 v2, 0x64

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    return-void

    .line 3
    :cond_0
    iput-wide p1, p0, Lcom/estrongs/android/widget/p;->i:J

    const-wide/16 p1, 0x1

    add-long/2addr v0, p1

    .line 4
    iput-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/widget/p;->l:Landroid/os/Handler;

    const/4 p2, 0x2

    invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/p;->a:Lcom/estrongs/android/widget/p$c;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/estrongs/android/widget/p$c;->a()Z

    .line 3
    :cond_0
    invoke-super {p0}, Landroid/app/Dialog;->onBackPressed()V

    return-void
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
    .locals 5

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    const-wide/16 v2, 0x64

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    return-void

    .line 2
    :cond_0
    iput-object p1, p0, Lcom/estrongs/android/widget/p;->j:Ljava/lang/CharSequence;

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    .line 3
    iput-wide v0, p0, Lcom/estrongs/android/widget/p;->k:J

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/widget/p;->l:Landroid/os/Handler;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    return-void
.end method
